<%--
  Created by IntelliJ IDEA.
  User: MACHENIKE
  Date: 2022/4/10
  Time: 17:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/webjars/bootstrap/4.6.1/css/bootstrap.min.css"/>
    <script src="${pageContext.request.contextPath}/webjars/jquery/3.5.1/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/webjars/bootstrap/4.6.1/js/bootstrap.min.js"></script>
    <title>UsersList</title>
</head>
<body>
<div class="col-md-10 offset-1">
    <table class="table">
        <thead>
        <tr>
            <th>class_id</th>
            <th>class_name</th>
            <th>class_grade</th>
            <th>stu_id</th>
            <th>stu_code</th>
            <th>stu_name</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${requestScope.classes}" var="j">
            <c:forEach items="${j.stuInfoList}" var="i">
            <tr>
                <th>${j.classId}</th>
                <th>${j.className}</th>
                <th>${j.classGrade}</th>
                <th>${i.stuId}</th>
                <th>${i.stuCode}</th>
                <th>${i.stuName}</th>
            </tr>
            </c:forEach>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>
